﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Menu.Master" AutoEventWireup="true" CodeBehind="ItemsForm.aspx.cs" Inherits="Emporium_Web.ItemsForm" Theme="Constellation" %>

<%@ MasterType VirtualPath="~/Menu.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register src="Search/ItemSearch.ascx" tagname="ItemSearch" tagprefix="uc1" %>
<%@ Register src="Search/TelaSearch.ascx" tagname="TelaSearch" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <article class="container_12">
	<section class="grid_12" id="cliente-block">

			<div class="block-border">
			<form id="Form1" runat="server" class="block-content form">
				<h1>Items</h1>
				 <ajaxtoolkit:toolkitscriptmanager ID="toolk" runat="server"></ajaxtoolkit:toolkitscriptmanager> 
                <asp:UpdatePanel ID = "upContent" runat="server">
                <ContentTemplate>   
                <div>
                <fieldset>
                    <legend>
                        <asp:Label runat="server" ID="leyendaForm"></asp:Label></legend>
                    <ul class="message error no-margin" runat="server" id="errorMessage">
                        <li>
                            <asp:Label runat="server" ID="lblErrorMessage"></asp:Label></li>
                    </ul>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>Estilo</label>
                        </div>
                        <div align="left" style="width: 50%; float: left;">                            
                            <asp:TextBox ID="txtEstilo" runat="server" Width="100%" Enabled="false"></asp:TextBox>
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>Variante</label>
                        </div>
                        <div align="left" style="width: 50%; float: left;">
                            <asp:TextBox ID="txtVariante" runat="server" Width="100%" Enabled="false"></asp:TextBox>                            
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>Componente</label>
                        </div>
                        <div align="left" style="width: 50%; float: left;">
                            <asp:TextBox ID="txtComponente" runat="server" Width="100%" Enabled="false"></asp:TextBox>                            
                        </div>
                    </div>
                    <br />
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>Secuencia</label>
                        </div>
                        <div align="left" style="width: 50%; float: left;">
                            <asp:TextBox ID="txtSecuencia" runat="server" Width="20%" Enabled ="false"></asp:TextBox>                            
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Item</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                           <uc1:ItemSearch ID="itemSearch" runat="server" Visible="false" ValidationGroup = "GrabarItem"/>
                           <uc2:TelaSearch ID="telaSearch" runat="server" Visible="true"/>
                        </div>                       
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Consumo</label>
                        </div>
                        <div align="left" style="width: 120px; float: left;">
                            <asp:TextBox ID="txtConsumo" name="txtNombre" runat="server" Width="100px"></asp:TextBox>
                        </div>
                        <div style="width: 75px; float: left; padding-right:20px;" align="right">
                            <label>
                                Unidad</label>
                        </div>
                        <div align="left" style="width: 120px; float: left;">
                            <asp:DropDownList ID="ddlUnidadMedida" DataValueField="UniMed_Id" DataTextField="UniMed_DescripcionCorta" runat="server" Width="80px" Enabled="false"/>
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Consumo Alt.</label>
                        </div>
                        <div align="left" style="width: 120px; float: left;">
                            <asp:TextBox ID="txtConsumoAlterno" name="txtNombre" runat="server" Width="100px"></asp:TextBox> 
                        </div>
                        <div style="width: 75px; float: left; padding-right:20px;" align="right">
                            <label>
                                Unidad Alt.</label>
                        </div>
                        <div align="left" style="width: 120px; float: left;">                            
                           <asp:DropDownList ID="ddlUnidadMedidaAlterno" DataValueField="UniMed_Id" DataTextField="UniMed_DescripcionCorta" runat="server" Width="80px"/>                            
                        </div>
                    </div>
                    
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Observaci&oacute;n</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <asp:TextBox ID="txtObservaciones" runat="server" Width="100%"></asp:TextBox>
                        </div>
                    </div>
                </fieldset>

				<fieldset class="grey-bg no-margin">
				<br />
						<asp:LinkButton ID="btnGrabar" runat="server" CssClass="button red" Text="Grabar" OnClick="btnGrabar_Click" ValidationGroup = "GrabarItem"></asp:LinkButton>
                        <asp:LinkButton ID="btnAtras" runat="server" CssClass="button red" Text="Atrás" OnClick="btnAtras_Click" CausesValidation="false"></asp:LinkButton>
				</fieldset>
                </div>
                </ContentTemplate>
                </asp:UpdatePanel>
			</form>
			</div>
		</section>
		</article>
</asp:Content>
